public class loopTest {
    public static void main(String[] args) {
        System.out.println("For Loop");
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }

        System.out.println("While Loop");
        int j = 0;
        while(j<10){
            System.out.println(j);
            j=j+1;

        }

        System.out.println("Do While Loop");
        int k = 0;
        do{
            System.out.println(k);
            k=k+1;
        }while(k<10);
    }
}
